package guggaTests.tasks
{
	import gugga.tasks.WrappingProgressiveTask;
	import gugga.tasks.events.ProgressiveTaskEvent;
	
	public class WrappingProgressiveTaskTest extends WrappingTaskTest
	{
		//var private mWrappingProgressiveTask = new WrappingProgressiveTask();
		
		public function WrappingProgressiveTaskTest(methodName:String=null)
		{
			super(methodName);
		}
		
		public function testWrappingProgerssiveFictiveEventRethrowing() : void
		{
			mWrappingTask = new WrappingProgressiveTask(null);
			mWrappingTask.WrappedTask = mWrappedTask;
			testWrappingFictiveEventRethrowing();
			testEventDispatching(ProgressiveTaskEvent.PROGRESS, mWrappingTask.start);
			
			assertEquals(
				"Progress of wrapped task shold be 100",
				100,
				WrappingProgressiveTask(mWrappingTask).getProgress()
				);
		}				
	}
}